home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
progjour
/
1991
/
06
/
alib
/
strlen.asm
< prev
next >
Wrap
Assembly Source File
|
1991-06-25
|
264b
|
25 lines
include asm.inc
public strlen
.code
;; strlen
;
; entry DS:SI string
; exit CX byte count excluding NULL
; uses AX
;
strlen proc
mov cx,si
sln1: lodsb
cmp al,NULL_CHAR
jne sln1
xchg cx,si
sub cx,si
dec cx
ret
strlen endp
end